<template>
  <section class="class-main">
    <el-collapse-transition>
      <section v-show="searchshow" class="main-search merge">
        <span class="svg-container">
          <svg-icon icon-class="search" />
        </span>
        <el-input v-model.trim="listQuery.name" placeholder="请输入培训班名称搜索" class="search-input" @keyup.enter.native="handleFilter" />
        <section class="search-btn">
          <el-button class="filter-item" type="primary" @click="handleFilter">搜索</el-button>
          <el-button type="primary" @click="handleReset">重置</el-button>
          <span class="search-more" @click="searchshow = !searchshow">
            更多筛选条件
            <i class="el-icon-arrow-down" />
          </span>
        </section>
      </section>
    </el-collapse-transition>
    <el-collapse-transition>
      <section v-show="!searchshow" class="main-search separate">
        <section class="search-inner">
          <el-row>
            <el-col :span="12">
              <section class="search-inner-item">
                <div class="item-label">培训班名称</div>
                <el-input v-model.trim="search.name" style="width: 90%" class="filter-item" placeholder="请输入培训班名称搜索" />
              </section>
            </el-col>
            <!-- <el-col :span="12">
              <section class="search-inner-item">
                <div class="item-label">班主任名称</div>
                <el-input v-model.trim="search.headmaster" style="width: 90%" class="filter-item" placeholder="请输入班主任名称搜索" />
              </section>
            </el-col> -->
            <el-col :span="12">
              <section class="search-inner-item">
                <div class="item-label">班级状态</div>
                <el-select v-model="search.areaStatus" placeholder="请选择班级状态" style="width: 90%;">
                  <el-option v-for="item in classList" :key="item.areaStatus" :label="item.className" :value="item.areaStatus" />
                </el-select>
              </section>
            </el-col>
            <el-col :span="12">
              <section class="search-inner-item">
                <div class="item-label">状态</div>
                <el-select v-model="search.status" placeholder="请选择状态" style="width: 90%;">
                  <el-option v-for="item in stateList" :key="item.status" :label="item.stateName" :value="item.status" />
                </el-select>
              </section>
            </el-col>
            <el-col :span="12">
              <section class="search-inner-item">
                <div class="item-label">培训班分类</div>
                <el-cascader
                  v-model.trim="search.classifyId"
                  style="width:100%"
                  clearable
                  :props="createClassifyProps"
                  :options="classifyOptions"
                />
              </section>
            </el-col>

          </el-row>
        </section>
        <section class="search-btn">
          <el-button type="primary" @click="handleFilter">搜索</el-button>
          <el-button type="primary" @click="handleReset">重置</el-button>
          <span class="search-more" @click="searchshow = !searchshow">
            精简筛选条件
            <i class="el-icon-arrow-up" />
          </span>
        </section>
      </section>
    </el-collapse-transition>

    <section class="main-buttons">
      <section class="main-buttons-title">
        <span>培训班管理</span>
      </section>
      <section class="main-buttons-btns" />
      <el-button style="margin-left: 10px" @click="handleCreate">新建班级</el-button>
      <el-button style="margin-left: 10px;" @click="handleSelectPlatform">选取SaaS平台培训班 </el-button>
      <el-button style="margin-left: 10px" @click="moreDel">批量删除</el-button>
    </section>
    <section class="main-table">
      <v-table
        :list="list"
        tag="classList"
        :list-loading="listLoading"
        :filter-column="filtercolumn"
        :selection="true"
        @handleSelectionChange="handleSelectionChange"
      >
        <el-table-column label="操作" fixed="right" align="center" min-width="120" class-name="small-padding fixed-width">
          <template slot-scope="scope">
            <el-button type="text" size="mini" @click="changeStatus(scope.row)">{{
              scope.row.status === 'ZT01' ? '禁用' : '启用'
            }}</el-button>
            <el-button v-if="scope.row.isForce !== 'SF01'" type="text" size="mini" @click="edit(scope.row)">编辑</el-button>
            <el-button type="text" size="mini" @click="Topping(scope.row)">{{ scope.row.isTop === 0 ? '置顶' : '取消置顶' }}</el-button>
            <el-dropdown trigger="click">
              <span class="el-dropdown-link"> 更多<i class="el-icon-arrow-down el-icon--right" /> </span>
              <el-dropdown-menu slot="dropdown">
                <el-dropdown-item @click.native="resourceManagement(scope.row)">资源</el-dropdown-item>
                <el-dropdown-item @click.native="classConfig(scope.row)">配置</el-dropdown-item>
                <el-dropdown-item @click.native="examine(scope.row)">交流</el-dropdown-item>
                <el-dropdown-item @click.native="noticeManagement(scope.row)">公告</el-dropdown-item>
                <el-dropdown-item @click.native="classScoreManagement(scope.row)">成绩</el-dropdown-item>
                <el-dropdown-item @click.native="personnelManagement(scope.row)">报名</el-dropdown-item>
                <el-dropdown-item v-if="scope.row.isForce !== 'SF01'" @click.native="handleDelete(scope.row.id)">删除</el-dropdown-item>
                <el-dropdown-item @click.native="viewAddress(scope.row)">地址</el-dropdown-item>
                <el-dropdown-item @click.native="handleFeedBack(scope.row)">反馈</el-dropdown-item>
                <el-dropdown-item @click.native="studentManagement(scope.row)">学员</el-dropdown-item>
                <el-dropdown-item @click.native="classTeacher(scope.row)">班主任</el-dropdown-item>
                <el-dropdown-item
                  v-if="scope.row.isForce === 'SF01'"
                  @click.native="handleSort(scope.row)"
                >修改排序</el-dropdown-item>
                <!-- <el-button type="text" size="mini" @click="resourceManagement(scope.row)">资源</el-button> -->
                <!-- <el-button type="text" size="mini" @click="classConfig(scope.row)">配置</el-button> -->
                <!-- <el-button type="text" size="mini" @click="examine(scope.row)">交流</el-button> -->
                <!-- <el-button type="text" size="mini" @click="noticeManagement(scope.row)">公告</el-button> -->
                <!-- <el-button type="text" size="mini" @click="classScoreManagement(scope.row)">成绩</el-button>
                <el-button v-if="scope.row.status === 'ZT01'" type="text" size="mini" @click="personnelManagement(scope.row)">报名</el-button>
                <el-button type="text" size="mini" @click="handleDelete(scope.row.id)">删除</el-button>
                <el-button type="text" size="mini" @click="viewAddress(scope.row)">地址</el-button>
                <el-button type="text" size="mini" @click="handleFeedBack(scope.row)">反馈</el-button> -->
              </el-dropdown-menu>
            </el-dropdown>
          </template>
        </el-table-column>
      </v-table>
      <pagination v-show="total > 0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
    </section>

    <!-- 班主任管理列表 -->
    <el-dialog
      v-if="classTeacherVisible"
      v-el-drag-dialog
      title="班主任"
      :visible.sync="classTeacherVisible"
      center
      :close-on-click-modal="false"
      destroy-on-close
    >
      <section class="main-table">
        <div>
          <el-button type="primary" @click="AddClassTeacher">新增班主任</el-button>
        </div>
        <el-table :data="classTeacherData" border style="width: 100%">
          <el-table-column prop="userName" label="姓名" align="center" />
          <el-table-column prop="phoneNumber" label="手机号" align="center" />
          <el-table-column label="操作" fixed="right" align="center" min-width="120" class-name="small-padding fixed-width">
            <template slot-scope="scope">
              <el-button v-if="scope.row.isForce !== 'SF01'" type="text" size="mini" @click="deleteClassTeacher(scope.row.id)">删除</el-button>
            </template>
          </el-table-column>
        </el-table>
      </section>
      <div slot="footer" class="dialog-footer">
        <el-button style="padding: 8px 30px;" @click="classTeacherVisible = false">取消</el-button>
        <el-button style="padding: 8px 30px;" type="primary" @click="updateClassTeacher">确定</el-button>
      </div>
    </el-dialog>
    <!-- 选择班主任 -->
    <el-dialog v-el-drag-dialog title="选择班主任" :visible.sync="dialogFormVisible" center fullscreen :close-on-click-modal="false">
      <add-user
        v-if="dialogFormVisible"
        ref="resetAll"
        v-loading.fullscreen.lock="fullscreenLoading"
        :before-list="beforeList"
        @userData="userData"
      />
      <div slot="footer" class="dialog-footer">
        <el-button style="padding: 8px 30px;" @click="dialogFormVisible = false">取消</el-button>
        <el-button style="padding: 8px 30px;" type="primary" @click="insertUser()">确定</el-button>
      </div>
    </el-dialog>
    <el-dialog
      v-el-drag-dialog
      title="修改排序"
      width="30%"
      :visible.sync="sortDialog"
      @close="cancelDialog"
    >
      <el-input
        v-model="form.sort"
        placeholder="请输入排序值"
        type="number"
      />
      <span slot="footer" class="dialog-footer">
        <el-button style="padding: 8px 30px;" @click="cancelDialog">取 消</el-button>
        <el-button style="padding: 8px 30px;" type="primary" @click="handelUpdateSort">确 定</el-button>
      </span>
    </el-dialog>
  </section>
</template>
<script>
import CryptoJS from '@/utils/aesJiaJM'
import addUser from '@/views/roleuserallot/components/adduser' // Secondary package based on el-pagination
import elDragDialog from '@/directive/el-drag-dialog' // base on element-ui
import { queryPage, del, updateStatus, updateTopping, updateClassTeacher, updateClassResources, fetchList } from '../api/index'
import Pagination from '@/components/Pagination'
import VTable from '@/components/Table'
import permission from '@/directive/permission/index.js'
export default {
  name: 'ClassMain',
  components: { Pagination, VTable, addUser },
  directives: { permission, elDragDialog },
  data() {
    return {
      createClassifyProps: {
        label: 'classifyName',
        value: 'id',
        checkStrictly: true,
        emitPath: false
      },
      areaId: '',
      dialogMultipleSelection: [],
      beforeList: [],
      fullscreenLoading: false,
      dialogFormVisible: false,
      classTeacherData: [],
      classTeacherVisible: false,
      listQuery: {
        page: 1,
        limit: 10,
        name: '',
        type: 'ZQLX_PXB'
      },
      searchshow: true,
      search: {
        name: '',
        headmaster: '',
        areaStatus: '',
        status: '',
        type: 'ZQLX_PXB',
        classifyId: ''
      },
      classifyOptions: [],
      classList: [
        {
          className: '未开始',
          areaStatus: '0'
        },
        {
          className: '开班中',
          areaStatus: '1'
        },
        {
          className: '已结束',
          areaStatus: '2'
        }
      ],
      stateList: [
        {
          stateName: '启用',
          status: 'ZT01'
        },
        {
          stateName: '禁用',
          status: 'ZT02'
        }
      ],
      list: [],
      total: 0,
      listLoading: false,
      newsItem: {},
      multipleSelection: [],
      link: '/trainClass/details?id=',
      form: {},
      sortDialog: false
    }
  },
  created() {
    this.getClassifyOption()
    this.getList()
  },
  methods: {
    /**
     * 获取分类
     */
    getClassifyOption() {
      const loading = this.$loading({
        lock: true,
        text: '请稍后',
        spinner: 'el-icon-loading',
        background: 'rgba(0, 0, 0, 0.3)'
      })
      return new Promise((resolve, reject) => {
        fetchList({ classifyType: 'AREA_PXB' })
          .then(({ data }) => {
            loading.close()
            this.classifyOptions = data.data || []
            resolve()
          })
          .catch((error) => {
            loading.close()
            reject(error)
          })
      })
    },
    handleSelectPlatform() {
      this.$router.push({ path: '/trainingArea/trainingManage/SelectCourse4platform', query: {}})
    },
    Topping(row) {
      const loading = this.$loading({
        lock: true,
        text: '请稍后',
        spinner: 'el-icon-loading',
        background: 'rgba(0, 0, 0, 0.3)'
      })
      updateTopping({ id: row.id, isTop: row.isTop === 0 ? 1 : 0 })
        .then((res) => {
          if (res.data.code === '200') {
            loading.close()
            this.$message({
              type: 'success',
              message: '操作成功!'
            })
            this.getList()
          }
        })
        .catch(() => {
          loading.close()
        })
    },
    /**
     * 新建
     */
    handleCreate() {
      this.$router.push({ path: this.$filterPath('ClassResourcesManage'), query: { type: 'c' }})
    },
    // 编辑
    edit(row) {
      this.$router.push({ path: this.$filterPath('ClassResourcesManage'), query: { type: 'u', id: row.id }})
    },
    // 多选
    handleSelectionChange(arr) {
      this.multipleSelection = arr
    },
    /**
     * 批量删除
     */
    moreDel() {
      if (this.multipleSelection.length > 0) {
        const arr = this.multipleSelection
          .map((item) => {
            return item.id
          })
          .join(',')
        this.handleDelete(arr)
      } else {
        this.$message({
          message: '请选择需要删除的数据！',
          type: 'warning'
        })
      }
    },
    /**
     * 评论管理
     */
    examine(row) {
      this.$router.push({
        path: this.$filterPath('commentAudit'),
        query: {
          id: row.id
        }
      })
    },
    // 反馈
    handleFeedBack(row) {
      this.$router.push({
        path: this.$filterPath('feedback'),
        query: {
          id: row.id
        }
      })
    },
    /**
     * 查看前端地址
     */
    viewAddress(row) {
      this.$confirm(
        `链接地址为：${this.link}${row.id}&resourceName=${row.name}<span style="color:red">注意：该链接只对已发布数据有效</span>`,
        '提示',
        {
          dangerouslyUseHTMLString: true,
          confirmButtonText: '复制链接',
          cancelButtonText: '取消',
          type: 'warning',
          customClass: 'training-course-confirm'
        }
      )
        .then(() => {
          const input = document.createElement('input')
          input.setAttribute('readonly', 'readonly')
          input.setAttribute('value', this.link + row.id + '&resourceName=' + row.name)
          document.body.appendChild(input)
          input.select()
          if (document.execCommand('copy')) {
            document.execCommand('copy')
            this.$message({
              title: '成功',
              message: '复制成功！',
              type: 'success',
              duration: 1500
            })
          }
          document.body.removeChild(input)
        })
        .catch(() => {})
    },
    /**
     * 编辑
     */
    handleUpdate(row) {
      this.$router.push({ path: this.$filterPath('classResourcesManage'), query: { i: row.id, type: 'u' }})
    },
    /**
     * 启用/禁用发布
     */
    changeStatus(row) {
      this.$confirm(row.status === 'ZT01' ? '确认禁用班级？' : '确认启用班级？', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
        .then(() => {
          const loading = this.$loading({
            lock: true,
            text: '请稍后',
            spinner: 'el-icon-loading',
            background: 'rgba(0, 0, 0, 0.3)'
          })
          updateStatus({ id: row.id, status: row.status === 'ZT01' ? 'ZT02' : 'ZT01' })
            .then((res) => {
              if (res.data.code === '200') {
                loading.close()
                this.$message({
                  type: 'success',
                  message: '操作成功!'
                })
                this.getList()
              }
            })
            .catch(() => {
              loading.close()
            })
        })
        .catch(() => {})
    },
    /**
     * 置顶/取消置顶
     */
    handleTop(row) {
      this.$confirm(row.isTop === '1' ? '确认取消置顶？' : '确认置顶？', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
        .then(() => {
          updateIsTop({ id: row.id, isTop: row.isTop === '1' ? '2' : '1' }).then((res) => {
            if (res.data.code === '200') {
              this.$message({
                type: 'success',
                message: '操作成功!'
              })
              this.getList()
            }
          })
        })
        .catch(() => {})
    },
    handleDelete(ids) {
      this.$confirm('此操作将永久删除该班级, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
        .then(() => {
          const loading = this.$loading({
            lock: true,
            text: '请稍后',
            spinner: 'el-icon-loading',
            background: 'rgba(0, 0, 0, 0.3)'
          })
          return new Promise((resolve, reject) => {
            del({ id: ids })
              .then(() => {
                loading.close()
                this.$message({
                  title: '成功',
                  message: '删除成功',
                  type: 'success',
                  duration: 2000
                })
                this.getList()
              })
              .catch((error) => {
                loading.close()
                reject(error)
              })
          })
        })
        .catch(() => {
          this.$message({
            type: 'info',
            message: '已取消删除'
          })
        })
    },

    filtercolumn(scope, item) {
      // return scope.row[item]
      if (item === 'startTime') {
        return scope.row['startTime'].substring(0, 10) + '至' + scope.row['endTime'].substring(0, 10)
      } else if (item === 'headmaster') {
        if (scope.row['teacherList']) {
          return scope.row['teacherList'].map((item) => item.userName).toString(',')
        }
      } else {
        return scope.row[item]
      }
    },

    handleReset() {
      this.search.classifyId = ''
      this.listQuery.page = 1
      this.listQuery.name = ''
      for (const i in this.search) {
        if (this.search['' + i + ''] instanceof Array) {
          this.search['' + i + ''] = []
        } else {
          this.search['' + i + ''] = ''
        }
      }
      this.getList()
    },

    handleFilter() {
      this.listQuery.page = 1
      this.getList()
    },

    getList(obj) {
      this.listLoading = true
      var query = {
        page: obj ? obj.page : this.listQuery.page,
        pageSize: obj ? obj.limit : this.listQuery.limit,
        type: 'ZQLX_PXB'
      }
      if (this.searchshow) {
        query['name'] = this.listQuery.name
      } else {
        query['name'] = this.search.name
        query['status'] = this.search.status
        query['areaStatus'] = this.search.areaStatus
        query['classifyId'] = this.search.classifyId
      }
      return new Promise((resolve, reject) => {
        queryPage(query)
          .then((response) => {
            this.list = response.data.data.rows
            this.total = response.data.data.total
            this.listLoading = false
          })
          .catch((error) => {
            reject(error)
            this.listLoading = false
          })
      })
    },
    classConfig(row) {
      this.$router.push({
        path: this.$filterPath('classConfig'),
        query: {
          id: row.id,
          name: row.name
        }
      })
    },
    // 进入公告
    noticeManagement(row) {
      this.$router.push({
        path: this.$filterPath('notice'),
        query: {
          id: row.id,
          name: row.name,
          isForce: row.isForce
        }
      })
    },
    // 班级成绩管理
    classScoreManagement(row) {
      this.$router.push({
        path: this.$filterPath('performanceManagement'),
        query: {
          id: row.id,
          name: row.name
        }
      })
    },
    // 班级资源管理
    resourceManagement(row) {
      this.$router.push({
        path: this.$filterPath('classResources'),
        query: {
          id: row.id,
          name: row.name,
          isAllowAddOwn: row.isAllowAddOwn
        }
      })
    },
    personnelManagement(row) {
      this.$router.push({
        path: this.$filterPath('personManage'),
        query: {
          id: row.id,
          name: row.name
        }
      })
    },
    studentManagement(row) {
      this.$router.push({
        path: this.$filterPath('studentManage'),
        query: {
          id: row.id,
          name: row.name
        }
      })
    },
    classTeacher(row) {
      this.areaId = row.id
      this.classTeacherData = row.teacherList
        ? row.teacherList.map((item) => {
          item.phoneNumber = CryptoJS.$aesJieM(item.phoneNumber)
          return {
            ...item
          }
        })
        : []
      this.classTeacherVisible = true
    },
    // 删除班主任
    deleteClassTeacher(id) {
      const cloneList = [...this.classTeacherData]
      const tacherList = cloneList.filter((item) => item.id !== id)
      this.$set(this, 'classTeacherData', tacherList)
    },
    // 新增班主任
    AddClassTeacher() {
      this.dialogFormVisible = true
    },
    userData(val) {
      this.dialogMultipleSelection = val
    },
    // 确定选择的人员
    insertUser() {
      if (this.dialogMultipleSelection.length > 0) {
        const tacherList = this.classTeacherData.map((item) => item.userId)
        const dataBzr = []
        this.dialogMultipleSelection.forEach((item) => {
          if (!tacherList.includes(item.id)) {
            dataBzr.push({
              id: item.id,
              userId: item.id,
              userName: item.userRealname,
              phoneNumber: CryptoJS.$aesJieM(item.phoneNumber)
            })
          }
        })
        this.$set(this, 'classTeacherData', [...this.classTeacherData, ...dataBzr])
        this.$set(this, 'dialogMultipleSelection', [])
        this.dialogListLoading = true
        this.dialogFormVisible = false
      } else {
        this.$message({
          message: '请选择班主任！',
          type: 'warning'
        })
      }
    },
    // 确定修改班主任
    updateClassTeacher() {
      const ids = this.classTeacherData.map((item) => item.userId).toString() || ''
      const loading = this.$loading({
        lock: true,
        text: '请稍后',
        spinner: 'el-icon-loading',
        background: 'rgba(0, 0, 0, 0.3)'
      })
      const params = {
        teacherIds: ids,
        areaId: this.areaId
      }
      return new Promise((resolve, reject) => {
        updateClassTeacher(params)
          .then(() => {
            this.dialogVisible = false
            loading.close()
            this.$message({
              title: '成功',
              message: '修改成功',
              type: 'success',
              duration: 2000
            })
            this.classTeacherVisible = false
            this.$nextTick(() => {
              this.getList()
            })
          })
          .catch((error) => {
            loading.close()
            reject(error)
          })
      })
    },

    // 修改排序
    handelUpdateSort() {
      if (this.form.sort === '') {
        this.$message({
          message: '请输入排序值',
          type: 'warning'
        })
        return
      }
      const obj = Object.assign({}, this.form)
      delete obj.mentorList
      const loading = this.$loading({
        lock: true,
        text: '请稍后',
        spinner: 'el-icon-loading',
        background: 'rgba(0, 0, 0, 0.3)'
      })
      updateClassResources(obj).then(res => {
        if (res.data.code === '200') {
          loading.close()
          this.sortDialog = false
          this.$message({
            message: '修改成功',
            type: 'success'
          })
          this.getList()
        } else {
          loading.close()
          this.$message({
            message: '修改失败',
            type: 'error'
          })
        }
      }).catch(() => {
        loading.close()
      })
    },

    // 强制下发数组修改排序
    handleSort(row) {
      const obj = Object.assign({}, row)
      obj.sort = ''
      this.form = obj
      this.sortDialog = true
    },

    // 取消修改排序
    cancelDialog() {
      this.sortDialog = false
      this.form = {}
    }
  }
}
</script>
<style lang="scss">
.training-course-confirm p{
  word-break: break-all;
}
.class-main {
  padding: 10px;
  .el-dropdown-link {
    cursor: pointer;
    color: #e44d42;
    font-size: 12px;
  }
  .main-search {
    background-color: #fff;
    padding: 0 10px;
    .svg-container {
      padding: 0 5px 0 10px;
      color: #bfced6;
      vertical-align: middle;
      display: inline-block;
    }
    .search-input {
      width: 60%;
      position: relative;
      &:after {
        content: '';
        position: absolute;
        left: -25px;
        right: 0;
        bottom: 8px;
        height: 1px;
        background: rgba(226, 227, 232, 1);
      }
      input {
        outline: none;
        background: transparent;
        border: none;
        outline: medium;
        padding: 0;
        &:focus {
          outline: none;
          background-color: transparent;
        }
      }
    }
    .search-btn {
      display: inline-block;
      float: right;
      .el-button.is-round {
        padding: 10px 30px;
        margin-right: 34px;
      }
      .search-more {
        font-size: 14px;
        font-weight: 500;
        @include font-color($mainColor);
        cursor: pointer;
        margin-left: 10px;
      }
    }

    &.merge {
      height: 50px;
      line-height: 50px;
    }

    &.separate {
      .search-inner {
        padding-top: 10px;
        .search-inner-item {
          .item-label {
            height: 30px;
            line-height: 30px;
            font-size: 14px;
            color: #a6a6a6;
            font-weight: 400;
          }
          .el-input {
            position: relative;
            &.el-date-editor input {
              padding-left: 30px;
            }
            .el-input__inner {
              border: none;
              padding: 0;
            }
            &:after {
              content: '';
              height: 1px;
              background-color: #e2e3e8;
              position: absolute;
              left: 0;
              right: 0;
              bottom: 0;
            }
          }
        }
      }
      .search-btn {
        text-align: center;
        display: block;
        float: none;
        height: 56px;
        line-height: 56px;
      }
    }
  }
  .main-buttons {
    display: flex;
    line-height: 36px;
    margin-top: 10px;
    .main-buttons-title {
      flex: 1;
      height: 36px;
      line-height: 36px;
      font-size: 16px;
      font-weight: bold;
      color: rgba(51, 51, 51, 1);
    }
  }

}
</style>
